<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <title>{$Think.config.site.title}</title>
    <meta name="keywords" content="{$Think.config.site.keywords}"/>
    <meta name="description" content="{$Think.config.site.keywords}"/>
    <link rel="Bookmark" href="__ROOT__/favicon.ico">
    <link rel="Shortcut Icon" href="__ROOT__/favicon.ico"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="__LIB__/html5.js"></script>
    <script type="text/javascript" src="__LIB__/respond.min.js"></script>
    <script type="text/javascript" src="__LIB__/PIE_IE678.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="__LIB__/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css" href="__LIB__/icheck/icheck.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/h-ui.admin/css/style.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/app.css"/>
    <!--[if IE 6]>
    <script type="text/javascript" src="__LIB__/DD_belatedPNG_0.0.8a-min.js"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    {include file='template/javascript_vars' /}
</head>
<body>
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl">
            <a class="logo navbar-logo f-l mr-10 hidden-xs" href="{:\\think\\Url::build('/admin')}">{$Think.config.site.name}</a>
            <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="{:\\think\\Url::build('/admin')}">tp</a>
            <span class="logo navbar-slogan f-l mr-10 hidden-xs">{$Think.config.site.version}</span>
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            {include file='template/nav_left' /}
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li class="dropDown dropDown_hover">
                        <a href="#" class="dropDown_A">
                            {$Think.session.user_name}
                            <i class="Hui-iconfont">&#xe6d5;</i>
                        </a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li>
                                <a href="javascript:;" onclick="layer_open('个人信息', '{:\\think\\Url::build(\'Pub/profile\')}')"><i class="Hui-iconfont">&#xe60d;</i>&nbsp;&nbsp;个人信息</a>
                            </li>
                            <li>
                                <a href="javascript:;" onclick="layer_open('修改密码', '{:\\think\\Url::build(\'Pub/password\')}')"><i class="Hui-iconfont">&#xe63f;</i>&nbsp;&nbsp;修改密码</a>
                            </li>
                            <li>
                                <a href="javascript:;" onclick="logout()"><i class="Hui-iconfont">&#xe726;</i>&nbsp;&nbsp;退出</a>
                            </li>
                        </ul>
                    </li>
                    <!--
                    <li id="Hui-msg">
                        <a href="javascript:;" onclick="layer.msg('这个功能自己做')" title="消息">
                            <span class="badge badge-danger">1</span>
                            <i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i>
                        </a>
                    </li>-->
                    <li id="Hui-skin" class="dropDown right dropDown_hover">
                        <a href="javascript:;" class="dropDown_A" title="换肤">
                            <i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i>
                        </a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                            <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                            <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="绿色">橙色</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<aside class="Hui-aside">
    <input runat="server" id="divScrollValue" type="hidden" value=""/>
    <div class="menu_dropdown bk_2" id="menu_container">
        {notempty name="group_menus"}
        {foreach $group_menus[$first] as $key=>$vo}
        <dl>
            <dt {eq name="key" value="0"}class="selected"{/eq}><i class="Hui-iconfont">{$vo.icon}</i> {$vo.name}<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd {eq name="key" value="0"}style="display:block;"{/eq}>
                <ul>
                    {notempty name="group_menus[$vo['id']]"}
                    {foreach $group_menus[$vo['id']] as $v}
                        <li><a _href="/{$v.menu_url}" data-title="{$v.name}" href="javascript:;">{$v.name}</a></li>
                    {/foreach}
                    {/notempty}
                </ul>
            </dd>
        </dl>
        {/foreach}
        {/notempty}
        <!--
        <dl>
            <dt><i class="Hui-iconfont">&#xe627;</i> 工具<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd>
                <ul>
                    <li><a _href="/admin/generate/index.html" data-title="代码自动生成" href="javascript:;">代码自动生成</a></li>
                    <li><a _href="/admin/demo/excel.html" data-title="Excel一键导出" href="javascript:;">Excel一键导出</a></li>
                    <li><a _href="/admin/demo/download.html" data-title="下载" href="javascript:;">下载</a></li>
                    <li><a _href="/admin/demo/downloadimage.html" data-title="远程图片下载" href="javascript:;">远程图片下载</a>
                    </li>
                    <li><a _href="/admin/demo/mail.html" data-title="邮件发送" href="javascript:;">邮件发送</a></li>
                    <li><a _href="/admin/demo/qiniu.html" data-title="七牛上传" href="javascript:;">七牛上传</a></li>
                    <li><a _href="/admin/demo/hashids.html" data-title="ID加密" href="javascript:;">ID加密</a></li>
                    <li><a _href="/admin/demo/layer.html" data-title="丰富弹层" href="javascript:;">丰富弹层</a></li>
                    <li><a _href="/admin/demo/tablefixed.html" data-title="表格溢出" href="javascript:;">表格溢出</a></li>
                    <li><a _href="/admin/demo/ueditor.html" data-title="百度编辑器" href="javascript:;">百度编辑器</a></li>
                    <li><a _href="/admin/demo/imageupload.html" data-title="图片上传" href="javascript:;">图片上传</a></li>
                    <li><a _href="/admin/demo/qrcode.html" data-title="二维码生成" href="javascript:;">二维码生成</a></li>
                    <li><a class="sub-menu-title" data-title="一级菜单" href="javascript:;"><b>+</b>一级菜单</a>
                        <ul class="sub-menu-list">
                            <li><a class="sub-menu-title" data-title="二级" href="javascript:;"><b>+</b>二级</a>
                                <ul class="sub-menu-list">
                                    <li><a class="sub-menu-title" data-title="三级菜单" href="javascript:;"><b>+</b>三级菜单</a>
                                        <ul class="sub-menu-list">
                                            <li><a _href="/admin/one.two.three.four/index.html" data-title="四级菜单"
                                                   href="javascript:;">四级菜单</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </li>
                    <li><a _href="/admin/one.two.three.four/index.html" data-title="多级节点" href="javascript:;">多级节点</a>
                    </li>
                </ul>
            </dd>
        </dl>-->
    </div>
</aside>
<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:;" onClick="displaynavbar(this)"></a></div>
<section class="Hui-article-box">
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active"><span title="我的桌面" data-href="welcome.html">我的桌面</span><em></em></li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
        </div>
    </div>
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <iframe scrolling="yes" frameborder="0" src="{:\\think\\Url::build('welcome')}"></iframe>
        </div>
    </div>
</section>
<script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__LIB__/layer/2.4/layer.js"></script>
<script type="text/javascript" src="__STATIC__/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="__STATIC__/h-ui.admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/app.js?var=10"></script>
<script>
    function logout() {
        layer.confirm('您确定要退出登录？', {title: '登出提醒'}, function (index) {
            location.href = '{:\\think\\Url::build("Pub/logout")}'
        })
    }

    //获取左侧菜单
    function getMenu(id){
        if(id == undefined || id == ''){
            return false;
        }
        $.post("/admin/Index/getMenu",{'id':id},function(ret){
            if(ret.code){
                //失败
                layer.msg(ret.msg);
            }else{
                //成功
                var data_list = ret.data;
                var str = '';
                for(x in data_list[id]){
                    var sel = (x == 0) ? 'class="selected"' : '';
                    var dis = (x == 0) ? 'style="display: block;"' : '';
                    str += '<dl><dt ' + sel + '><i class="Hui-iconfont">' + data_list[id][x]['icon'] + '</i> '+ data_list[id][x]['name'] +'<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt><dd ' + dis + '><ul>';
                    var data = data_list[data_list[id][x]['id']];
                    for(i in data){
                        str += '<li><a _href="/' + data[i].menu_url + '" data-title="' + data[i].name + '" href="javascript:;">' + data[i].name + '</a></li>';
                    }
                    str += '</ul></dd></dl>';
                }
                $("#menu_container").html(str);
                //左侧菜单
                $.Huifold(".menu_dropdown dl dt", ".menu_dropdown dl dd", "fast", 3, "click");
            }
        },"json");
    }
</script>
</body>
</html>